<?php
/**
 * @file faq_view.php
 * @author LD
 * @package notice
 * @desc 常见问题解答
 */
$this->_extends('_layouts/help_layout');
if ( !empty($page_name) ){
	$this->_block('page_title');
	echo ' - '.$page_name;
	$this->_endblock();
}
?>
<?php $this->_block('newbie'); 
	foreach ($newbie as $nb){ ?>
<table cellspacing="0" cellpadding="2" width="230" border="0">
	<tbody>
		<tr>
			<td width="6" height="20" align="right"><img height="6" src="<?php echo $_BASE_DIR; ?>images/arrow1.gif" width="6" /></td>
			<td align="left" width="208"><a href="<?php echo url('help/index', array('nid' => $nb->id) ); ?>"><?php echo $nb->title; ?></a></td>
		</tr>
	</tbody>
</table>
<table cellspacing="0" cellpadding="0" width="230" border="0">
	<tbody><tr><td bgcolor="#ededed" height="1"></td></tr></tbody>
</table>
<?php } 
	$this->_endblock(); ?>

<?php $this->_block('advanced'); 
	foreach ( $advanced as $adv ){ ?>
<table cellspacing="0" cellpadding="2" width="230" border="0">
	<tbody>
		<tr>
			<td width="6" height="20" align="right"><img height="6" src="<?php echo $_BASE_DIR; ?>images/arrow1.gif" width="6" /></td>
			<td align="left" width="208"><a href="<?php echo url('help/index', array('nid' => $adv->id) ); ?>"><?php echo $adv->title; ?></a></td>
		</tr>
	</tbody>
</table>
<table cellspacing="0" cellpadding="0" width="230" border="0">
	<tbody><tr><td bgcolor="#ededed" height="1"></td></tr></tbody>
</table>
<?php }
	$this->_endblock(); ?>

<?php $this->_block('contents'); ?>
		<table width="689" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="6" height="29"><img src="<?php echo $_BASE_DIR; ?>images/topl.gif" width="6" height="29" /></td>
				<td align="center" background="<?php echo $_BASE_DIR; ?>images/topb.gif">
					<table width="96%" border="0" cellspacing="0" cellpadding="0">
						<tr><td align="left"><span class="blue14"><?php echo $page_name; ?></span></td></tr>
					</table>
				</td>
				<td width="6" height="29"><img src="<?php echo $_BASE_DIR; ?>images/topr.gif" width="6"height="29" /></td>
			</tr>
		</table>
		
		<table width="689" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="1" height="652" bgcolor="#a5bfeb"></td>
				<td align="center" valign="top">
					
					<table width="50%" border="0" cellspacing="0" cellpadding="0">
						<tr><td>&nbsp;</td></tr>
					</table>
			
<table width="92%" border="0" cellspacing="0" cellpadding="0">
	<tr><td align="left" valign="top">
<?php 
$num = count($faq);
for ($i=0; $i<$num; $i++) { ?>
<div class="faqNode">
	<h2 class="faqTitle"><a name="<?php echo $faq[$i]->id; ?>"><?php echo ($i+1).'. '.$faq[$i]->title; ?></a></h2>
	<div class="faqContent">
<?php echo $faq[$i]->content; ?>
	</div>
</div>
<?php } ?>
	</td></tr>
</table>
				
				</td>
				<td width="1" bgcolor="#a5bfeb"></td>
			</tr>
		</table>
<?php $this->_endblock(); ?>